import * as apiService from '@/services/api'

/**
 * 获取转账记录
 * @param params
 * @returns {Promise<*>}
 *
 */
const getTransferList= params=> {
  return apiService.post(api.TRANSFER_LIST,params)
};
/**
 * 获取转账异常记录
 * @param params
 * @returns {Promise<*>}
 *
 */
const getTransferExceptions= params=> {
  return apiService.post(api.TRANSFER_EXCEPTIONS,params)
};
/**
 * 获取转账异常处理人
 * @param params
 * @returns {Promise<*>}
 *
 */
const getTransferExceptionsApprover= params=> {
  return apiService.post(api.TRANSFER_EXCEPTIONS_APPROVER,params)
};

/**
 * 处理异常
 * @param params
 * @returns {Promise<*>}
 *
 */
const updateTransferStatus= params=> {
  return apiService.post(api.TRANSFER_UPDATE_STATUS,params)
};

/**
 * 转账设置
 * @param params
 * @returns {Promise<*>}
 *
 */
const setTransferConfigs = params=> {
  return apiService.post(api.TRANSFER_SET_CONFIGS,params)
};
/**
 * 转账设置
 * @param params
 * @returns {Promise<*>}
 *
 */
const getTransferConfigs = params=> {
  return apiService.post(api.TRANSFER_GET_CONFIGS,params)
};

/**
 * 导出转账记录报表
 * @param params
 * @returns {Promise<*>}
 *
 */
const exportTransferLogs = params=> {
  return apiService.post(api.EXPORT_TRANSFER_LOGS,params)
};

/**
 * 导出异常转账记录报表
 * @param params
 * @returns {Promise<*>}
 *
 */
const exportTransferExceptions= params=> {
  return apiService.post(api.EXPORT_TRANSFER_EXCEPTIONS,params)
};
/**
 * 重置异常转账处理
 * @param params
 * @returns {Promise<*>}
 *
 */
const resetTransferExceptions= params=> {
  return apiService.post(api.RESET_TRANSFER_EXCEPTION,params)
};
export {
  getTransferList,
  // getTransferDetail,
  updateTransferStatus,
  getTransferConfigs,
  setTransferConfigs,
  getTransferExceptions,
  getTransferExceptionsApprover,
  exportTransferLogs,
  exportTransferExceptions,
  resetTransferExceptions,
};
